﻿<%@ Control Language="C#" ClassName="NewsItemFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataLangId" runat="server" Text="Lang Id:" AssociatedControlID="dataLangId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataLangId" Text='<%# Bind("LangId") %>' MaxLength="2"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataLangId" runat="server" Display="Dynamic" ControlToValidate="dataLangId" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemName" runat="server" Text="Item Name:" AssociatedControlID="dataItemName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemName" Text='<%# Bind("ItemName") %>' MaxLength="200"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemName" runat="server" Display="Dynamic" ControlToValidate="dataItemName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemTitle" runat="server" Text="Item Title:" AssociatedControlID="dataItemTitle" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemTitle" Text='<%# Bind("ItemTitle") %>' MaxLength="200"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemTitle" runat="server" Display="Dynamic" ControlToValidate="dataItemTitle" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemSummary" runat="server" Text="Item Summary:" AssociatedControlID="dataItemSummary" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemSummary" Text='<%# Bind("ItemSummary") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemSummary" runat="server" Display="Dynamic" ControlToValidate="dataItemSummary" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemDetails" runat="server" Text="Item Details:" AssociatedControlID="dataItemDetails" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemDetails" Text='<%# Bind("ItemDetails") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemDetails" runat="server" Display="Dynamic" ControlToValidate="dataItemDetails" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemAuthor" runat="server" Text="Item Author:" AssociatedControlID="dataItemAuthor" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemAuthor" Text='<%# Bind("ItemAuthor") %>' MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemAuthor" runat="server" Display="Dynamic" ControlToValidate="dataItemAuthor" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemPostDate" runat="server" Text="Item Post Date:" AssociatedControlID="dataItemPostDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemPostDate" Text='<%# Bind("ItemPostDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataItemPostDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataItemPostDate" runat="server" Display="Dynamic" ControlToValidate="dataItemPostDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemPostString" runat="server" Text="Item Post String:" AssociatedControlID="dataItemPostString" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemPostString" Text='<%# Bind("ItemPostString") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemPostString" runat="server" Display="Dynamic" ControlToValidate="dataItemPostString" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemImage" runat="server" Text="Item Image:" AssociatedControlID="dataItemImage" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemImage" Text='<%# Bind("ItemImage") %>' MaxLength="200"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemImage" runat="server" Display="Dynamic" ControlToValidate="dataItemImage" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemImageDescription" runat="server" Text="Item Image Description:" AssociatedControlID="dataItemImageDescription" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemImageDescription" Text='<%# Bind("ItemImageDescription") %>' MaxLength="200"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemKeyword" runat="server" Text="Item Keyword:" AssociatedControlID="dataItemKeyword" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemKeyword" Text='<%# Bind("ItemKeyword") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemKeyword" runat="server" Display="Dynamic" ControlToValidate="dataItemKeyword" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemView" runat="server" Text="Item View:" AssociatedControlID="dataItemView" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataItemView" Text='<%# Bind("ItemView") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataItemView" runat="server" Display="Dynamic" ControlToValidate="dataItemView" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataItemView" runat="server" Display="Dynamic" ControlToValidate="dataItemView" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCategoryId" runat="server" Text="Category Id:" AssociatedControlID="dataCategoryId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCategoryId" Text='<%# Bind("CategoryId") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCategoryId" runat="server" Display="Dynamic" ControlToValidate="dataCategoryId" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataCategoryId" runat="server" Display="Dynamic" ControlToValidate="dataCategoryId" ErrorMessage="Invalid value" MaximumValue="255" MinimumValue="0" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCategoryTitle" runat="server" Text="Category Title:" AssociatedControlID="dataCategoryTitle" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCategoryTitle" Text='<%# Bind("CategoryTitle") %>' MaxLength="200"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCategoryTitle" runat="server" Display="Dynamic" ControlToValidate="dataCategoryTitle" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCategoryName" runat="server" Text="Category Name:" AssociatedControlID="dataCategoryName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCategoryName" Text='<%# Bind("CategoryName") %>' MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCategoryName" runat="server" Display="Dynamic" ControlToValidate="dataCategoryName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsHot" runat="server" Text="Is Hot:" AssociatedControlID="dataIsHot" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsHot" SelectedValue='<%# Bind("IsHot") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsActive" runat="server" Text="Is Active:" AssociatedControlID="dataIsActive" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsActive" SelectedValue='<%# Bind("IsActive") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


